package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.CustomerInsuranceMapper;
import com.dh.project.model.Insurance;
import com.dh.project.service.CustomerInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/7/20.
 */
@Service
public class CustomerInsuranceServiceImpl extends SuperServiceImpl<CustomerInsuranceMapper,Insurance> implements CustomerInsuranceService{

    @Autowired
    private CustomerInsuranceMapper customerInsuranceMapper;

    @Override
    public List<Insurance> getInsuranceByAddress_id(int address_id) {
        return customerInsuranceMapper.getInsuranceByAddress_id(address_id);
    }

    @Override
    public List<Insurance> getInsuranceByAdd(int address_id) {
        return customerInsuranceMapper.getInsuranceByAdd(address_id);
    }
}
